M-SEARCH * HTTP/1.1

MX: 2

HOST: 239.255.255.250:1900

MAN: "ssdp:discover"

ST: urn:schemas-upnp-org:service:WANPPPConnection:1



M-SEARCH * HTTP/1.1

MX: 2

HOST: 239.255.255.250:1900

MAN: "ssdp:discover"

ST: urn:schemas-upnp-org:service:WANIPConnection:1





M-SEARCH * HTTP/1.1

MX: 2

HOST: 239.255.255.250:1900

MAN: "ssdp:discover"

ST: urn:schemas-upnp-org:service:WANPPPConnection:1



M-SEARCH * HTTP/1.1

MX: 2

HOST: 239.255.255.250:1900

MAN: "ssdp:discover"

ST: urn:schemas-upnp-org:service:WANIPConnection:1





HTTP/1.1 200 OK

CACHE-CONTROL: max-age=100

DATE: Wed, 19 Mar 2014 21:34:24 GMT

EXT:

LOCATION: http://192.168.1.1:1900/igd.xml

SERVER: TP-LINK WR541G/542G, UPnP/1.0

ST: urn:schemas-upnp-org:service:WANIPConnection:1

USN: uuid:upnp-WANConnectionDevice-192168115678900001::urn:schemas-upnp-org:service:WANIPConnection:1





HTTP/1.1 200 OK

CACHE-CONTROL: max-age=100

DATE: Wed, 19 Mar 2014 21:34:24 GMT

EXT:

LOCATION: http://192.168.1.1:1900/igd.xml

SERVER: TP-LINK WR541G/542G, UPnP/1.0

ST: urn:schemas-upnp-org:service:WANIPConnection:1

USN: uuid:upnp-WANConnectionDevice-192168115678900001::urn:schemas-upnp-org:service:WANIPConnection:1





GET /igd.xml HTTP/1.1

Host: 192.168.1.1:1900

Connection: close



HTTP/1.1 200 OK

CONTENT-LENGTH: 2746

CONTENT-TYPE: text/xml

DATE: Wed, 19 Mar 2014 21:34:27 GMT

LAST-MODIFIED: Tue, 28 Oct 2003 08:46:08 GMT

SERVER: TP-LINK WR541G/542G, UPnP/1.0

CONNECTION: close



<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase></URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:InternetGatewayDevice:1</deviceType>
<presentationURL>http://192.168.1.1:80       </presentationURL>
<friendlyName             >TP-LINK WR541G/542G</friendlyName>
<manufacturer                         >TP-LINK</manufacturer>
<manufacturerURL          >http://www.tp-link.com</manufacturerURL>
<modelDescription              >TL-WR541G/542G 7.0</modelDescription>
<modelName                  >TL-WR541G/542G</modelName>
<modelNumber                             >7.0</modelNumber>
<UDN>uuid:upnp-InternetGatewayDevice-192168115678900001</UDN>
<UPC>123456789001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:Layer3Forwarding:1</serviceType>
<serviceId>urn:upnp-org:serviceId:L3Forwarding1</serviceId>
<controlURL>/l3f</controlURL>
<eventSubURL>/l3f</eventSubURL>
<SCPDURL>/l3f.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANDevice:1</deviceType>
<friendlyName>WAN Device</friendlyName>
<manufacturer                         >TP-LINK</manufacturer>
<manufacturerURL          >http://www.tp-link.com</manufacturerURL>
<modelDescription>WAN Device</modelDescription>
<modelName>WAN Device</modelName>
<modelNumber>1</modelNumber>
<modelURL></modelURL>
<serialNumber>12345678900001</serialNumber>
<UDN>uuid:upnp-WANDevice-192168115678900001</UDN>
<UPC>123456789001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANCommonInterfaceConfig</serviceId>
<controlURL>/ifc</controlURL>
<eventSubURL>/ifc</eventSubURL>
<SCPDURL>/ifc.xml</SCPDURL>
</service>
</serviceList>
<deviceList>
<device>
<deviceType>urn:schemas-upnp-org:device:WANConnectionDevice:1</deviceType>
<friendlyName>WAN Connection Device</friendlyName>
<manufacturer                         >TP-LINK</manufacturer>
<manufacturerURL          >http://www.tp-link.com</manufacturerURL>
<modelDescription>WAN Connection Device</modelDescription>
<modelName>WAN Connection Device</modelName>
<modelNumber>1</modelNumber>
<modelURL></modelURL>
<serialNumber>12345678900001</serialNumber>
<UDN>uuid:upnp-WANConnectionDevice-192168115678900001</UDN>
<UPC>123456789001</UPC>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:WANIPConnection:1</serviceType>
<serviceId>urn:upnp-org:serviceId:WANIPConnection</serviceId>
<controlURL>/ipc</controlURL>
<eventSubURL>/ipc</eventSubURL>
<SCPDURL>/ipc.xml</SCPDURL>
</service>
</serviceList>
</device>
</deviceList>
</device>
</deviceList>
</device>
</root>



POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping"

Connection: close

Content-Length: 407



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:DeletePortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>UDP</NewProtocol>

</u:DeletePortMapping></s:Body></s:Envelope>

HTTP/1.1 500 Internal Server Error

CONTENT-LENGTH: 473

CONTENT-TYPE: text/xml; charset="utf-8"

DATE: Wed, 19 Mar 2014 21:34:28 GMT

EXT:

SERVER: TP-LINK WR541G/542G, UPnP/1.0



<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>402</errorCode>
<errorDescription>Invalid Args</errorDescription>
</UPnPError>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping"

Connection: close

Content-Length: 407



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:DeletePortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>TCP</NewProtocol>

</u:DeletePortMapping></s:Body></s:Envelope>

HTTP/1.1 500 Internal Server Error

CONTENT-LENGTH: 473

CONTENT-TYPE: text/xml; charset="utf-8"

DATE: Wed, 19 Mar 2014 21:34:29 GMT

EXT:

SERVER: TP-LINK WR541G/542G, UPnP/1.0



<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>402</errorCode>
<errorDescription>Invalid Args</errorDescription>
</UPnPError>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"

Connection: close

Content-Length: 661



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>UDP</NewProtocol>

<NewInternalPort>45065</NewInternalPort>

<NewInternalClient>192.168.1.150</NewInternalClient>

<NewEnabled>1</NewEnabled>

<NewPortMappingDescription>Skype UDP at 192.168.1.150:45065 (2634)</NewPortMappingDescription>

<NewLeaseDuration>0</NewLeaseDuration>

</u:AddPortMapping></s:Body></s:Envelope>

HTTP/1.1 200 OK

CONNECTION: close

SERVER: TP-LINK WR541G/542G, UPnP/1.0

CONTENT-LENGTH: 332

CONTENT-TYPE: text/xml; charset="utf-8"



<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<u:AddPortMappingResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"></u:AddPortMappingResponse></SOAP-ENV:Body>
</SOAP-ENV:Envelope>




POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"

Connection: close

Content-Length: 661



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>TCP</NewProtocol>

<NewInternalPort>45065</NewInternalPort>

<NewInternalClient>192.168.1.150</NewInternalClient>

<NewEnabled>1</NewEnabled>

<NewPortMappingDescription>Skype TCP at 192.168.1.150:45065 (2634)</NewPortMappingDescription>

<NewLeaseDuration>0</NewLeaseDuration>

</u:AddPortMapping></s:Body></s:Envelope>

HTTP/1.1 200 OK

CONNECTION: close

SERVER: TP-LINK WR541G/542G, UPnP/1.0

CONTENT-LENGTH: 332

CONTENT-TYPE: text/xml; charset="utf-8"



<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<u:AddPortMappingResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"></u:AddPortMappingResponse></SOAP-ENV:Body>
</SOAP-ENV:Envelope>




POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetSpecificPortMappingEntry"

Connection: close

Content-Length: 427



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:GetSpecificPortMappingEntry xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>UDP</NewProtocol>

</u:GetSpecificPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK

CONNECTION: close

SERVER: TP-LINK WR541G/542G, UPnP/1.0

CONTENT-LENGTH: 600

CONTENT-TYPE: text/xml; charset="utf-8"



<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<u:GetSpecificPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewInternalPort>45065</NewInternalPort><NewInternalClient>192.168.1.150</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>Skype UDP at 192.168.1.150:4506</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:GetSpecificPortMappingEntryResponse></SOAP-ENV:Body>
</SOAP-ENV:Envelope>




POST /ipc HTTP/1.1

Host: 192.168.1.1:1900

Content-Type: text/xml; charset="utf-8"

SOAPAction: "urn:schemas-upnp-org:service:WANIPConnection:1#GetSpecificPortMappingEntry"

Connection: close

Content-Length: 427



<?xml version="1.0" encoding="utf-8"?>

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<s:Body><u:GetSpecificPortMappingEntry xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">

<NewRemoteHost></NewRemoteHost>

<NewExternalPort>45065</NewExternalPort>

<NewProtocol>TCP</NewProtocol>

</u:GetSpecificPortMappingEntry></s:Body></s:Envelope>

HTTP/1.1 200 OK

CONNECTION: close

SERVER: TP-LINK WR541G/542G, UPnP/1.0

CONTENT-LENGTH: 600

CONTENT-TYPE: text/xml; charset="utf-8"



<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<u:GetSpecificPortMappingEntryResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewInternalPort>45065</NewInternalPort><NewInternalClient>192.168.1.150</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>Skype TCP at 192.168.1.150:4506</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:GetSpecificPortMappingEntryResponse></SOAP-ENV:Body>
</SOAP-ENV:Envelope>




